package com.starbugs.wehcat.pojo;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author huahuadavids
 */
public class TextEditor {

  @Autowired
  private SpellChecker spellChecker;

  private String name;

  public SpellChecker getSpellChecker() {
    return spellChecker;
  }
  public void setName(String name) {
    System.out.println("TextEditor setName");
    this.name = name;
  }
  public String getName() {
    return name;
  }
  public void spellCheck() {
    spellChecker.checkSpelling();
  }
}